#include "camera.h"

bool camera_on_mouse_move(vortex::EventType type, void* sender, void* listener, void* context)
{
    Camera* camera = (Camera*)listener;
    float* data = (float*)context;
    float xoff = data[0];
    float yoff = data[1];
    camera->ProcessMouseMovement(xoff, yoff);
    // std::cout << "mouse move: " << xoff << ", " << yoff << std::endl;
    return true;
}
